public class Demo05 {
    public static void main(String[] args) {
        boolean a = ! true;
        System.out.println(a);

        boolean b = true & false;
        System.out.println(b);

        boolean c = false | true;
        System.out.println(c);

        boolean d = (true & false) | true;
        System.out.println(d);

        boolean e = false && (true | false);
        System.out.println(e);

        boolean f = !! true || false;
        System.out.println(f);

        boolean i = true && false && true;
        System.out.println(i);

        boolean j = false | false | true;
        System.out.println(j);


    }
}
